﻿using System.Collections;

using System.Collections.Generic;
using UnityEngine;

public class TestMat : MonoBehaviour {

	// Use this for initialization
	void Start () {
		MeshRenderer mr = gameObject.AddComponent<MeshRenderer> ();

		Material matRed = Resources.Load ("Materials/Red", typeof(Material)) as Material;
		Material matGreen = Resources.Load ("Materials/Green", typeof(Material)) as Material;

        Material[] mats = new Material[2];
        mats[0] = matRed;
        mats[1] = matGreen;
        mr.materials = mats;
    }
}
